<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<!--修改学校页面 -->
<div class="pageContent">
	<form method="post"
		action="school_edit.action" 
		class="pageForm required-validate" 
		onsubmit="return validateCallback(this,navTabAjaxDone)">
		<input type="hidden" name="sclId" value="${sclId }">
		<input type="hidden" name="schoolRelation.sclRelId" value="${schoolRelation.sclRelId }">
		<div class="pageFormContent nowrap" layoutH="56">
			<fieldset>
				<legend>基本信息</legend>
			
				<p>
					<label>学校名称</label> 
					<label>${sclName }</label>
					
				</p>
				<p>
					<label>所属地区</label> 
					<label><c:forEach var="area" items="${areaList}">
	 					<c:if test="${area.areaCode==areaCode }">
							${area.areaName }
						</c:if>
						</c:forEach>
						</label>
				</p>
				<p>
					<label>学校编号</label> 
					<label>${sclNumber}
						</label>
				</p>
				<p>
					<label>联系电话</label> 
					<label>${sclPhone eq null?"无":sclPhone }</label>
				</p>
				<p>
					<label>学校地址</label> 
					<label>${sclAddr eq null?"无":sclAddr}</label>
				</p>
				<p>
					<label>学校联络人姓名</label> 
					<label>${sclLeaderName eq null?"无":sclLeaderName }</label>
				</p>
				<p>
					<label>学校联络人电话</label> 
					<label>${sclLeaderPhone eq null?"无":sclLeaderPhone }</label>
				</p>
				<p>
					<label>学校简介：</label>
					<label>${sclSummary eq null?"无":sclSummary}</label>
				</p>
				<p></p>
				<p></p>
			</fieldset>
			
			<fieldset>
				<legend>扩展信息</legend>
				<p>
					<label>移动客户经理</label>
					<label><c:forEach var="mobManager" items="${mobManagerList}">
	 					<c:if test="${mobManager.osuId == schoolRelation.mobManagerId }">
							${mobManager.osuName}
						</c:if>
						</c:forEach>
					</label>
					<!-- 
					<span class="req">*</span>
					 -->
				</p>
				<p>
					<label>学校管理人员</label>
					<label>
					<c:forEach var="sclManager" items="${sclManagerList}">
	 					<c:if test="${sclManager.osuId == schoolRelation.sclManagerId }">
							${sclManager.osuName}
						</c:if>
					</c:forEach>
					</label>
				</p>
				<p>
					<label>拓展人员</label>
					<label>
					<c:forEach var="sale" items="${saleList}">
	 					<c:if test="${sale.isuId == schoolRelation.saleUserId }">
							${sale.isuName}
						</c:if>
					</c:forEach>
					</label>
				</p>
				<p>
					<label>维护人员</label>
						<c:forEach items="${maintainList}" var="maintainUser">
							<c:if test="${schoolRelation.saleKeepId ==maintainUser.isuId }">
							${maintainUser.isuName}</c:if>
						</c:forEach>
				</p>
				<%-- <p>
					<label>客服人员</label>
					<label>
					<c:forEach var="csUser" items="${customServiceList}">
	 					<c:if test="${csUser.isuId == schoolRelation.csUserId }">
							${csUser.isuName}
						</c:if>
					</c:forEach>
					</label>
				</p> --%>
				<p>
					<label>卡类型</label>
					<label>${schoolRelation.cardTypeFlag == "0" ?"M1":"FR" }</label>
				</p>
				<p>
					<label>发卡方</label>
					<label>${schoolRelation.cardIssusrFlag == "0" ?"第三方":"我方" }</label>
				</p>
				<p>
					<label>结算方式</label>
					<label>
					<c:forEach var="blance" items="${blanceTypeList}">
	 					<c:if test="${blance.dicCode == schoolRelation.balanceTypeFlag }">
							${blance.dicName}
						</c:if>
					</c:forEach>
					</label>
				</p>
				<p>
					<label>激励方式</label> 
					<label>
					<c:forEach var="marketing" items="${marketingTypeList}">
	 					<c:if test="${marketing.dicCode == schoolRelation.marketingTypeFlag }">
							${marketing.dicName}
						</c:if>
					</c:forEach>
					</label>
					<!-- 
					<span class="req">*</span>
					 -->
				</p>
				<p>
					<label>备注：</label>
					<label>${schoolRelation.remark eq null?"无":schoolRelation.remark}</label>
				</p>
				<p>
					<label>创建时间：</label>
					<label>
					<c:choose> 
							<c:when test="${inputTime eq null}">
								无
							</c:when>
							<c:otherwise>
							 	<fmt:parseDate value="${inputTime}" var="icitime" pattern="yyyyMMddHHmmss"/>  
						<fmt:formatDate value="${icitime}" pattern="yyyy-MM-dd HH:mm" /> 
							</c:otherwise>
						</c:choose>
					</label>
				</p>
				<p>
					<label>IC卡密码（DKA）：</label>
					<label>${school.dKeyA}</label>
				</p>
				<p></p>
			</fieldset>
			<%--
			
			<dl>
				<dt>发卡方：</dt>
				<dd>
					<select class="combox" name="hsSchoolRelation.cardIssusrFlag" id="cardIssusrFlag" >
						  <option value="0" <c:if test="${hsSchoolRelation.cardIssusrFlag=='0'}">selected</c:if>>第三方</option>
						  <option value="1" <c:if test="${hsSchoolRelation.cardIssusrFlag=='1'}">selected</c:if>>我公司</option>
		              </select>
					<span class="info">如果是我公司发卡，该卡会被加密，第三方卡不会被加密</span>
				</dd>
			</dl>
			<dl>
				<dt>卡预留扇区号：</dt>
				<dd>
					<select class="combox" name="hsSchoolInfo.cardReservedArea" id="reservedArea">
							<c:forEach var="i" begin="0" end="15" step="1">
							      <option value='${i}' <c:if test="${i==hsSchoolInfo.cardReservedArea}">selected</c:if>>${i}</option>
							</c:forEach>
		              </select>
					<span class="info">卡预留扇区不会被加密，供其他厂商使用，默认为15扇区</span>
				</dd>
			</dl>
			<dl>
				<dt>射频卡：</dt>
				<dd>
					 <select class="combox" name="hsSchoolRelation.cardTypeFlag" id="cardTypeFlag" nullmsg="请选择射频卡" datatype="s"  sucmsg="&nbsp;">
						  <option value="0" <c:if test="${hsSchoolRelation.cardTypeFlag=='0'}">selected</c:if>>否</option>
						  <option value="1" <c:if test="${hsSchoolRelation.cardTypeFlag=='1'}">selected</c:if>>是</option>
		              </select>
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>销售人员：</dt>
				<dd>
					<input type="text" name="saleName" id="saleName" disabled class="required" value="${sale.isuName }"/>
					<span class="info">本学校由哪个销售人员负责</span>
				</dd>
			</dl>
			<dl>
				<dt>移动客户经理：</dt>
				<dd>
		              <input type="text" name="saleName" id="saleName" disabled class="required" value="${sale.isuName }-${fn:substring(sale.isuPhone,fn:length(sale.isuPhone)-4,fn:length(sale.isuPhone))}"/>
					<span class="info">姓名+手机号码后4位</span>
				</dd>
			</dl>
			<dl>
				<dt>激励方式：</dt>
				<dd>
					<select class="combox required" name="hsSchoolRelation.marketingTypeFlag" id="marketingTypeFlag" nullmsg="请选择激励方式" datatype="s"  sucmsg="&nbsp;" onchange="change()">
			                      <option value="">--请选择--</option>
				                  <c:forEach items="${marketingTypeFlagList}" var="dic">
				       					<option value="${dic.dicCode}" <c:if test="${hsSchoolRelation.marketingTypeFlag eq dic.dicCode}">selected</c:if>>${dic.dicName }</option>
				       			  </c:forEach>
			         </select>
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>结算方式：</dt>
				<dd>
					 <select class="combox required"  name="hsSchoolRelation.balanceTypeFlag" id="balanceTypeFlag" nullmsg="请选择结算方式" datatype="s"  sucmsg="&nbsp;" 
					 <c:if test="${hsSchoolInfo.checkStatusFlag=='1'}">readonly</c:if>>
			                      <option value="">--请选择--</option>
				                  <c:forEach items="${balanceTypeFlagList}" var="dic">
				       					<option value="${dic.dicCode}" <c:if test="${hsSchoolRelation.balanceTypeFlag eq dic.dicCode}">selected</c:if>
				       					  
				       					>${dic.dicName }</option>
				       			  </c:forEach>
			         </select>
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>审核状态：</dt>
				<dd>
				    <input type="hidden" id="checkStatusFlag" value="${hsSchoolInfo.checkStatusFlag}"/>
					<c:if test="${hsSchoolInfo.checkStatusFlag==1}"><span style="color:green">已审核</span></c:if>
			        <c:if test="${hsSchoolInfo.checkStatusFlag==0}"><span style="color:red">未审核</span></c:if>
					<span style="color:#7F7F7F">已审核的学校只允许总经办修改激励方式和结算方式</span>
				</dd>
			</dl>
			<dl id="div1">
				<dt>其它类激励方式详述：</dt>
				<dd>
				    <textarea name="hsSchoolRelation.marketingContent" class="textInput" id="marketingContent"   cols="20" rows="4" 
		              datatype="otherRewardType" nullmsg="详述不能为空" 
		              errormsg="其它类激励方式详述不能少于30个汉字" sucmsg="&nbsp;">${hsSchoolRelation.marketingContent}</textarea>
		              <span class="info"></span>
		              <span style="color:#7F7F7F">如果激励方式选择“其它”，则此选项不能为空且不能少于30</span>
				</dd>
			</dl>
			 --%>
			<%-- <div class="control-group">
		          <label class="control-label" for="hsSclintroduction">其它类激励方式详述：</label>
		          <div class="controls">
		              <textarea name="schoolRelation.checkStatusFlagcheckStatusFlag" id="hsSclintroduction"  class="span5" rows="5" 
		              datatype="otherRewardType" nullmsg="详述不能为空" 
		              errormsg="其它类激励方式详述不能少于30个汉字" sucmsg="&nbsp;">${schoolRelation.checkStatusFlag}</textarea>
		              <span class="Validform_checktip"></span>
		              <p class="help-block">如果激励方式选择“其它”，则此选项不能为空<br/>并且详述不能少于30个汉字</p>
		          </div>
			</div> --%>
			<!-- <div class="divider"></div> -->
			
		</div>
	</form>
	
</div>
